package OnTheBeachDB::Page;

##=================
## load DBIx::Class
use base qw/DBIx::Class/;  
##=================

##=================    
## DBIx::Class stuff
##=================  
__PACKAGE__->load_components(qw/PK::Auto Core/);
__PACKAGE__->table('pages');
__PACKAGE__->add_columns(

   page_id => {
        data_type         => 'INT',
        size              => 11,
        is_nullable       => 0,
        is_auto_increment => 1
   },

   title   => {
        data_type   => 'VARCHAR',
        size        => 200,
        is_nullable => 0,
   },

   header  => {
        data_type   => 'VARCHAR',
        size        => 200,
        is_nullable => 0,
   },

   content => {
        data_type   => 'TEXT',
        is_nullable => 0,
   },

   name    => {
        data_type   => 'VARCHAR',
        size        => 200,
        is_nullable => 0,
   },
   

);
##=================


__PACKAGE__->set_primary_key(qw/page_id/);

##=================
## Relationships
##=================


1;
